CFLAGS		=-w
INCLUDES  	=-I./
SOURCES	 	=$(wildcard ./*.c)
OBJ			=$(patsubst %.c, %.o, $(SOURCES))
TARGET		=main
 
#links
$(TARGET):$(OBJ)
	$(CC) $(OBJ) $(LIB_PATH) $(LIB_NAMES) -o $(TARGET)$(VERSION)
	@rm -rf $(OBJ)


#compile
%.o: %.c
	$(CC) $(INCLUDES) $(DEBUG) -c $(CFLAGS) $< -o $@


clean:
	rm -rf $(TARGET)